package kitchen.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * FoodPracticeSteps entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "food_practice_steps", catalog = "delicacy")
public class FoodPracticeSteps implements java.io.Serializable {

	// Fields

	private Integer id;
	private Food food;
	private String description;
	private Integer step;
	private String img;

	// Constructors

	/** default constructor */
	public FoodPracticeSteps() {
	}

	/** minimal constructor */
	public FoodPracticeSteps(Integer id, Food food, String description,
			Integer step) {
		this.id = id;
		this.food = food;
		this.description = description;
		this.step = step;
	}

	/** full constructor */
	public FoodPracticeSteps(Integer id, Food food, String description,
			Integer step, String img) {
		this.id = id;
		this.food = food;
		this.description = description;
		this.step = step;
		this.img = img;
	}

	// Property accessors
	@Id
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "belong_to", nullable = false)
	public Food getFood() {
		return this.food;
	}

	public void setFood(Food food) {
		this.food = food;
	}

	@Column(name = "description", nullable = false)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "step", nullable = false)
	public Integer getStep() {
		return this.step;
	}

	public void setStep(Integer step) {
		this.step = step;
	}

	@Column(name = "img")
	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}

}